package com.mqz.seckill.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mqz.seckill.mapper.GoodsMapper;
import com.mqz.seckill.pojo.Goods;
import com.mqz.seckill.service.GoodsService;
import com.mqz.seckill.vo.GoodsVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {
    @Resource
    private GoodsMapper goodsMapper;

    @Override
    public List<GoodsVO> GoodsVOList() {
        return goodsMapper.goodsVOList();
    }

    @Override
    public GoodsVO getGoodsVOByGoodsId(Long goodsID) {
        return goodsMapper.getGoodsVOByGoodsId(goodsID);
    }
}
